package asteroids.model.programs.statements;

import asteroids.model.programs.expressions.Expression;

public class While extends Statement {

	public While(int line, int column, Expression condition, Statement body) {
		super(line, column);
		this.condition = condition;
		this.body = body;
	}

	@Override
	public void accept(StatementRunner sv) {
		sv.run(this);
	}
	
	public Expression getCondition() {
		return condition;
	}

	private final Expression condition;
	
	public Statement getBody() {
		return body;
	}
	
	private final Statement body;

}
